package com.example.wordpress;

import android.os.Bundle;
import android.webkit.WebView;
import android.app.Activity;

public class WebActivity extends Activity {

	WebActivityView webActivityView;
	WebActivityCtrl webActivityCtrl;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		webActivityView = new WebActivityView(this);
		webActivityCtrl = new WebActivityCtrl(webActivityView);
		
		((WebView) findViewById(R.id.webView)).setWebViewClient(webActivityCtrl);
	}
	
	@Override
	protected void onPause() {
		super.onPause();
		webActivityCtrl.onPause();
	}
	
	@Override
	public void onBackPressed() {
		webActivityCtrl.onBackPressed();
	}
}
